package com.zoe.onelink.core.util.http;


import com.zoe.onelink.core.util.http.model.HttpClientResponse;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-10-19
 */
public interface HttpClientAsyncCallback<R> {

    /**
     * 请求成功回调
     *
     * @param response 请求结果
     */
    void onSuccess(HttpClientResponse<R> response);

    /**
     * 请求失败回调
     *
     * @param exception 请求异常
     */
    void onFailure(Throwable exception);

}
